import { SupplierRequest } from '@/plugins/supplier-request'

// 供应商管理 - 供应商账号管理 - 列表查询
export const querySupplierAccountListService = (data, loadingFn) => SupplierRequest({
  url: '/supplier-account/pageSupplierAccount',
  type: 'post',
  data,
  loadingFn
});
// 供应商管理 - 供应商账号管理 - 导出文件
export const exportSupplierAccountFileService = (data, loadingFn) => SupplierRequest({
  url: '/supplier/export/exportSupplierAccount',
  type: 'get',
  data,
  loadingFn,
  isExport: true
});
// 供应商管理 - 供应商账号管理 - 开通账号
export const openSupplierAccountService = (data, loadingFn) => SupplierRequest({
  url: '/supplier-account/openSupplierAccount',
  type: 'post',
  data,
  loadingFn
});
// 供应商管理 - 供应商账号管理 - 关闭账号
export const closeSupplierAccountService = (data, loadingFn) => SupplierRequest({
  url: '/supplier-account/closeSupplierAccount',
  type: 'post',
  data,
  loadingFn
});
// 查询关闭日志
export const queryCloseLogsService = (data, loadingFn) => SupplierRequest({
  url: '/supplier-account/queryOperation',
  type: 'get',
  data,
  loadingFn
});
